.title_wrapper
  %h2
    Distributors: Application Accounts
  = link_to 'Create Distributor Application Account', new_application_account_path
  
%h3
  All Distributors
  
.table_view
  %table
    %tr
      %th
        No.
      %th
        Name
      %th
        URL
      %th
        Distributor
      %th
        Created
      %th
        Status
      %th{ :colspan => "3" } 
        Actions

    - @application_accounts.each do |application_accounts|
      %tr
        %td
          = h application_accounts.id
        %td
          = link_to application_accounts.name, application_accounts
        %td
          = link_to application_accounts.url
        %td
          = h application_accounts.distributor.name
        %td
          = h application_accounts.created_at.strftime("%b. %d, %Y %H:%M")
        %td
          = h application_accounts.status
        %td
          = link_to 'Show', application_accounts
        %td
          = link_to 'Edit', edit_application_account_path(application_accounts)
        %td
          = link_to 'Destroy', application_accounts, :confirm => 'Are you sure?', :method => :delete

    %tr.paginator
      %td{:colspan => 9}
        = will_paginate @application_accounts